
package atmv3;

import java.util.*;

public class ATMtest {
    public static void main(String[] args) {
        int[] Banknotes = {1,2,3,4,5};
        int sum = 10; 
        
        ATMv3 myATM = new ATMv3(Banknotes);
        ArrayList<int[]> variants = myATM.cashing(sum);
        
        //пример вывода
        Iterator<int[]> myIterator = variants.iterator();
        
        while(myIterator.hasNext()){
            int[] vars = myIterator.next();
            for(int i = 0; i < vars.length; i++){
                System.out.print(vars[i]+" ");
            }
            System.out.println();
        }
            
                
                
    }    
}
